package com.example.plat.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.plat.enity.Activity;
import com.example.plat.enity.Comment;
import com.example.plat.enity.Place;
import com.example.plat.enity.User;
import com.example.plat.exception.ActivityException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ActivityService {


    //发布活动
    Activity createActivity(Activity activity, List<String> images)throws ActivityException;

    //参与活动
    String joinActivity(Long userId, Long actId)throws ActivityException;

    //是否参与活动
    boolean isJoin(Long userId,Long actId);

    //修改活动
    void updateActivity(Activity activity, List<String> images)throws ActivityException;

    //删除活动
    void deleteActivity(Long actId)throws ActivityException;

    //取消参与活动
    void cancelJoin(Long userId,Long actId) throws ActivityException;

    //收藏活动
    void collect(Long userId, Long actId) throws ActivityException;

    //取消收藏
    void cancleCollect(Long userId,Long actId) throws ActivityException;
}
